{% extends "base.html" %}
{% block sideBarContent %}
<H2>Liste der Teams</H2>


<div style="background:red; color:yellow;"><b>{{ error }}</b></div>
<div style="background:lightgreen">{{ msg }}</div>

<table class="t_main t_teams">
  <tr><th>Name</th>   <th>Manager</th> <th class='td_detail'>Liga</th> <th>edit</th></tr>

{% for entry in entries %}
  <tr>
        <td>{{ entry.name }}</td>
        <td>{{ entry.user }}</td>
        <td class='td_detail'>{{ entry.x_liga }}</td>
        {%if entry.valid %}
        <td><a href="team_edit?key={{ entry.key }}">edit</a></td>
        {%else%}
        <td><a href="team_edit?del=1&key={{ entry.key }}"><i>(delete)</i></a></td>
        {%endif%}
  </tr>
{% endfor %}

</table>

<p><a href="team_new">Neues Team</a></p>

{% endblock %}
